# This code is part of the MWP System
# Copyright (c) 2012 Benjamin Lubin (blubin@bu.com) 
# Published under and subject to the GPLv2 license available at http://www.gnu.org/licenses/gpl-2.0.html

'''
Created on Dec 18, 2012
@author: blubin
'''

from frontend.roleApplication import RoleApplication;
from frontend.form import Type;
from unique import UNIQUE;

class ArtistApplication(RoleApplication):
    """ The Artist User Interface """

    def __init__(self):
        super(ArtistApplication, self).__init__("CharacterCreation"+UNIQUE, "Artist");
        self.register_transition_step("CreateModel", self.create_model_form_creator, name_fields=["Name"]);

    def create_model_form_creator(self, stepname, form):
        form.add_task_label(fields=["Name", "Description", "CharacterType", "ColorScheme"]);
        form.add_field(Type.SHORTSTRING, "FileName", labeltext="File Name:")
        form.add_field(Type.SHORTSTRING, "PolygonCount", labeltext="Polygon Count:")
        form.add_field(Type.CHOICE, "TextureResolution", labeltext="Texture Resolution:", choices=['12x12', '24x24', '48x48', '96x96', '128x128'])

if __name__ == '__main__':
    app = ArtistApplication();
    app.MainLoop();